from datetime import datetime
from pydantic import BaseModel
from typing import Optional, List, Any
from app.schemas.base_model import OrmBaseModel

# Shared properties
from app.schemas.chart import StrategyParam


class PositionBase(OrmBaseModel):
    id: Optional[int]
    userId: Optional[int]
    instrumentId: Optional[int]
    cost: Optional[float]
    num: Optional[float]
    startDate: Optional[datetime]
    endDate: Optional[datetime]
    state: Optional[str]
    createdDate: Optional[datetime]
    updatedDate: Optional[datetime]


class PositionQuery(PositionBase):
    pass

class PositionParam(PositionBase):
    pass

